package com.smedi.ismedi.authoritymanagement.api.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 保存 角色元素ids 请求
 *
 * @author xienannan
 * @date 2021/08/28
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "保存 角色元素ids 请求")
public class RoleElementRelationshipSaveRequest implements Serializable {

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id")
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    /**
     * 元素ids
     */
    @ApiModelProperty(value = "元素ids")
    @NotEmpty(message = "元素ids")
    private List<Long> elementIds;
}
